#include<stdio.h>
#include<pthread.h>

pthread_mutex_t mutex;

void* Rountine(void* arg){
    //申请两次锁
    pthread_mutex_lock(&mutex);
    pthread_mutex_lock(&mutex);

    return (void*)2025;
}

int main(){
    pthread_t tid;
    pthread_mutex_init(&mutex,NULL);

    pthread_create(&tid,NULL,Rountine,NULL);
    pthread_join(tid,NULL);

    pthread_mutex_destroy(&mutex);
    return 0;
}